home *** CD-ROM | disk | FTP | other *** search
/ The Best of MacTutor - S…e Code for Volumes 1 to 5 / The Best of MacTutor - Source Code for Volume 1-5 (Wayzata Technology)(6031)(1990).bin / Source Code / #49 (Oct 89) / DMP Source / src / DMP-110.h < prev    next >
Text File  |  1989-01-02  |  2KB  |  85 lines

  1. /*
  2.  * Earle R. Horton.
  3.  * Wednesday, November 30, 1988
  4.  * All rights reserved.
  5.  */
  6. #ifndef __DMP__
  7. #define __DMP__
  8. /*
  9.  * Define BACKWARD_COMPATIBLE if you wish to use the printing glue,
  10.  * rather than the _PrGlue trap.  Penalty is about 2k size in the
  11.  * final printer resource file.
  12.  */
  13. #ifdef BACKWARD_COMPATIBLE
  14. #include <Printing.h>
  15. #else
  16. #include <Printtraps.h>
  17. #endif
  18. #include <setjmp.h>
  19. #include <Devices.h>
  20. #include <AppleTalk.h>
  21. #include <Files.h>
  22. #include <Serial.h>
  23. #define PrintErr (*(short *)(0x0944)) /* Not used if PrGlue trap found. */
  24. #define SHEETDIALOG (-8190)
  25. #define DONEITEM    1
  26. #define STOPITEM    2
  27. #define RES1ID      (-4080)
  28. #define RES2ID      (-8192)
  29. #define SYSNEEDED   (0x0410)
  30. #define ATALKALERT   (-4078)
  31. #define SYSVERSALERT (-4079)
  32. #define iPrRelease 3
  33.  
  34. #define GRAFREZZ    120
  35. #define NORMALREZ   80
  36. #define COMPATREZ   72
  37.  
  38. #define VERSION     3
  39. #define iFMgrCtl    8
  40. #define iPrEvtCtl   6
  41. #define lPrLFEighth 0x0003FFFE
  42. #ifndef FALSE
  43. #define FALSE       0
  44. #define TRUE        1
  45. #endif
  46. #define iPrPgMax    9999
  47. #define iPrPgFst    1
  48.  
  49. typedef struct
  50.     {
  51.     struct QElem    *qLink;
  52.     short       qType;
  53.     short       ioTrap;
  54.     Ptr         ioCmdAddr;
  55.     ProcPtr     ioCompletion;
  56.     OSErr       ioResult;
  57.     char        *ioNamePtr;
  58.     short       ioVRefNum;
  59.     short       ioCRefNum;
  60.     short       csCode;
  61.     long        lParam1;
  62.     long        lParam2;
  63.     long        lParam3;
  64. } PrParam,*PPrParam;
  65.  
  66. typedef struct{
  67.     short   dummy[5];
  68. } pconfig,*Pcfg,**Pfg;
  69.  
  70. #define pport       ((*settings)->dummy[0])
  71. #define pbaud       ((*settings)->dummy[1])
  72. #define XonXoff     ((*settings)->dummy[2])
  73.  
  74. #define MAGIC 'Dmp1'
  75. #define PORTOPEN 'OPEN'
  76. #define dOpened 5
  77.  
  78. typedef struct{
  79.     ParamBlockRec   iopb;       /* For writing to the serial driver. */
  80.     jmp_buf         abortbuf;
  81.     Ptr             obuf;
  82. }Dstorage,*DPstorage,**DHstorage;
  83.  
  84. #endif
  85.